home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / vision / povray / scenes / level3 / takeoff.pov < prev    next >
Text File  |  1995-11-25  |  5KB  |  207 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // Sample quartic file
  4. // by David Mason (of DTA fame!)
  5.  
  6. #include "shapes.inc"
  7. #include "colors.inc"
  8. #include "textures.inc"
  9. #include "shapesq.inc"
  10.  
  11. #declare Steel = texture {
  12.    pigment { SteelBlue }
  13.    finish {
  14.       phong 1.0
  15.       phong_size 20
  16.       ambient 0.2
  17.       diffuse 0.8
  18.    }
  19. }
  20.  
  21. #declare Fin = difference {
  22.    intersection {
  23.       sphere { <0, 0, 0>, 1 scale <2, 4, 0.5> }
  24.       plane { y, 0 inverse }
  25.       plane { x, 0 }
  26.    }
  27.    sphere { <0, 0, 0>, 2 }
  28.  
  29.    translate -1.2*x
  30.    texture { Steel }
  31. }
  32.  
  33. #declare Fins = union {
  34.    object { Fin rotate   0*y }
  35.    object { Fin rotate  90*y }
  36.    object { Fin rotate 180*y }
  37.    object { Fin rotate 270*y }
  38.  
  39.    bounded_by {
  40.       intersection {
  41.          object { Cylinder_Y scale <3.5, 1, 3.5> }
  42.          plane { y, 4 }
  43.          plane { y, 0 inverse }
  44.       }
  45.    }
  46. }
  47.  
  48. object { Fins rotate 25*y translate 6*y }
  49.  
  50. intersection {
  51.    union {
  52.       intersection {
  53.          object {
  54.             Piriform
  55.             translate -0.75*x
  56.             rotate -90*z
  57.             scale <2, 6, 2>
  58.             texture { Steel }
  59.          }
  60.          object {
  61.             QCone_Y
  62.             scale <1.8, 5.0, 1.8>
  63.             rotate 180*x
  64.             translate 5*y
  65.             pigment { Clear }
  66.          }
  67.          plane { y, 5 pigment { Clear } }
  68.          plane { y, 0 inverse pigment { Clear } }
  69.       }
  70.       intersection {
  71.          object {
  72.             Piriform
  73.             translate -0.75*x
  74.             rotate 90*z
  75.             scale <2, 18, 2>
  76.             texture { Steel }
  77.          }
  78.          object {
  79.             QCone_Y
  80.             scale <1.8, 15.0, 1.8>
  81.             translate -15*y
  82.             pigment { Clear }
  83.          }
  84.          plane { y, 0 pigment { Clear } }
  85.          plane { y, -8 inverse pigment { Clear } }
  86.       }
  87.       intersection {
  88.          object {
  89.             Piriform
  90.             translate -0.40*x
  91.             rotate 90*z
  92.             scale <2, 6, 2>
  93.             texture { Steel }
  94.          }
  95.          plane { y, 0 inverse pigment { Clear } }
  96.          translate -11*y
  97.       }
  98.    }
  99.    object { Cylinder_Y scale <1.45, 1.0, 1.45> pigment { Clear } }
  100.  
  101.    bounded_by {
  102.       intersection {
  103.          object { Cylinder_Y scale <1.45, 1.0, 1.45> }
  104.          plane { y, 5 }
  105.          plane { y, -11 inverse }
  106.       }
  107.    }
  108.    translate 18*y
  109. }
  110.  
  111. union {
  112.    intersection {
  113.       object {
  114.          Piriform
  115.          texture { finish {Luminous} pigment { Yellow filter 0.7 } }
  116.       }
  117.       object { Cylinder_Y scale <0.8, 1.0, 0.8> pigment { Black } }
  118.    }
  119.  
  120.    light_source { <0, 0, 0> color Yellow }
  121.  
  122.    translate -0.40*x
  123.    rotate 90*z
  124.    scale <0.8, 5, 0.8>
  125.  
  126.    bounded_by {
  127.       intersection {
  128.          object { Cylinder_Y scale <0.8, 1.0, 0.8> }
  129.          plane { y, 6 }
  130.          plane { y, -8 inverse }
  131.       }
  132.    }
  133.    translate 4*y
  134. }
  135.  
  136. camera {
  137.    location  <3.0,  30, -20.0>
  138.    up        <0.0,  1.0,  0.1>
  139.    right     <4/3, 0.0,  0.0>
  140.    look_at   <0.0,  12, 0>
  141. }
  142.  
  143. light_source { <100, 100, -100> colour White }
  144.  
  145. plane {
  146.    y, 0
  147.  
  148.    texture {
  149.       pigment {
  150.          checker colour Gold colour Aquamarine
  151.          scale < 5, 5.1, 5 >
  152.       }
  153.       finish {
  154.          reflection 0.5
  155.          ambient 0.1
  156.          diffuse 0.8
  157.       }
  158.    }
  159. }
  160.  
  161. sphere {
  162.    <0.0, 0.0, 0.0>, 300.0
  163.  
  164.    texture {
  165.       pigment {
  166.          gradient y
  167.          colour_map {
  168.             [0.0 0.8  colour red 1.0 green 0.3 blue 0.0
  169.                       colour red 0.7 green 0.7 blue 1.0]
  170.             [0.8 1.0  colour red 0.7 green 0.7 blue 1.0
  171.                       colour red 0.7 green 0.7 blue 1.0]
  172.          }
  173.          scale 300.0
  174.          quick_color red 0.7  green 0.7 blue 1.0
  175.       }
  176.       finish {
  177.          ambient 0.7
  178.          diffuse 0.0
  179.       }
  180.    }
  181. }
  182.  
  183. sphere {
  184.    <0.0, 0.0, 0.0>, 259.0
  185.  
  186.    texture {
  187.       pigment {
  188.          bozo
  189.          turbulence 0.5
  190.          colour_map {
  191.             [0.0 0.6  colour red 1.0 green 1.0 blue 1.0 filter 1.0
  192.                       colour red 1.0 green 1.0 blue 1.0 filter 1.0]
  193.             [0.6 0.8 colour red 1.0 green 1.0 blue 1.0 filter 1.0
  194.                      colour red 1.0 green 1.0 blue 1.0]
  195.             [0.8 1.001 colour red 1.0 green 1.0 blue 1.0
  196.                        colour red 0.8 green 0.8 blue 0.8]
  197.          }
  198.          scale <100.0, 20.0, 100.0>
  199.          quick_color red 0.7 green 0.7 blue 1.0
  200.       }
  201.       finish {
  202.          ambient 0.7
  203.          diffuse 0.0
  204.       }
  205.    }
  206. }
  207.